

class BorrowBikeM   {
  BorrowBikeM({
      this.orderId, 
      this.helmetReact,
    this.errorMsg,
  });

  BorrowBikeM.fromJson(dynamic json) {
    orderId = json['order_id'];
    helmetReact = json['helmet_react'];
  }
  String? orderId;
  num? helmetReact;
  String? errorMsg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['order_id'] = orderId;
    map['helmet_react'] = helmetReact;
    return map;
  }

  factory BorrowBikeM.error(String errorMsg){
    return BorrowBikeM(errorMsg: errorMsg.replaceAll('Exception', ''));
  }
}
